import QtQuick 1.0

Rectangle {
    id: mainMenu;

    signal add(int key, string value)
    signal change(int key, string value)

    property SystemPalette palette

    Row // main menu
    {
        spacing: 5
        anchors.horizontalCenter: parent.horizontalCenter
        y: 5
        z: 1

        DataBlock {
            id: dataBlock
            palette: mainMenu.palette
            radius: 5
        }

        AddBlock {
            id: addBlock
            palette: mainMenu.palette
            radius: 5

            onCommit: mainMenu.add(key, value)
        }
    }
}
